/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.mzk.oai.repositoryManager;

/**
 *
 * @author Martin
 */
public class EntityException extends RuntimeException {

    private final String entityClassName;

    /**
     * Constructs an instance of <code>EntityException</code> with the specified detail message.
     * @param entityClassName name of entity class that caused the exception
     * @param msg the detail message.
     */
    public EntityException(String entityClassName, String msg) {
        super(msg);
        this.entityClassName = entityClassName;
    }

    /**
     * 
     * @return name of entity class that caused the exception
     */
    public String getEntityClassName() {
        return entityClassName;
    }
}
